<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<div>姓名:<span id="xingMing"></span></div>
		<div>语文:<span id="yuWen"></span></div>
		<div>数学:<span id="shuXue"></span></div>
		<div>年龄:<span id="nianling"></span></div>
	</body>
	<script>
		function Person(){
			this.name="张三";
			this.chinese="98";
			this.math="80";
		}
		Person.prototype.showname=function(){
			return this.name;
		}
		Person.prototype.showchinese=function(){
			return this.chinese;
		}
		Person.prototype.showmath=function(){
			return this.math;
		}
		var a=new Person();
		function Student(){
			this.age="24";
		}
		Student.prototype=a;
		Student.prototype.showage=function(){
			return this.age;
		}
		var b=new Student();
		document.getElementById("xingMing").innerHTML=b.showname();
		document.getElementById("yuWen").innerHTML=b.showchinese();
		document.getElementById("shuXue").innerHTML=b.showmath();
		document.getElementById("nianling").innerHTML=b.showage();
	</script>
</html>
